<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
<body> 
	<ui:composition template="/pages/template.xhtml">
		<ui:define name="title">Add user</ui:define>
		<ui:define name="content">
			Add User XHTML Content
			<h:form id="addUser">
			<rich:panel style="width:320px;">
		        <f:facet name="header">
		            <h:outputText value="Person Info"></h:outputText>
		        </f:facet>
		        <h:panelGrid columns="2">
		            <h:outputText value="First Name: "/>
		            <rich:inplaceInput defaultLabel="click to enter your first name" value="#{userMB.firstName}" />
		            <h:outputText value="Last Name: "/>
		            <rich:inplaceInput defaultLabel="click to enter your last name" value="#{userMB.lastName}" />
		            <h:outputText value="Email: "/>
		            <rich:inplaceInput defaultLabel="click to enter your email" value="#{userMB.email}"/>
		            <h:outputText value="Corporate Key: " />
		            <rich:inplaceInput defaultLabel="click to enter your corporate key" value="#{userMB.ck}"/>
		            <h:outputText value="Password: " />
		            <h:inputSecret value="#{userMB.password}" />
		            <h:outputText value="Confirm Password: " />
		            <h:inputSecret value="#{userMB.password}" />
		            <h:outputText value="Role: " />
		            
		        </h:panelGrid>
		        <h:commandButton id="submitUser" label="Add User" value="Add User" title="Submit" action="#{userMB.saveUser}" />
		      </rich:panel>
		      </h:form>
		</ui:define>
	</ui:composition>
</body> 
</html>
